package com.example.barcodeapp.persenter;

import com.example.barcodeapp.base.BasePersenter;
import com.example.barcodeapp.common.CommonSubscriber;
import com.example.barcodeapp.interfaces.own.IOwn;
import com.example.barcodeapp.model.HttpManager;
import com.example.barcodeapp.ui.home.bean.JiaoShiXiangQingBean;
import com.example.barcodeapp.ui.own.bean.KeChengBean;
import com.example.barcodeapp.utils.RxUtils;

public class OnePresenterJiaoShiXiangQing extends BasePersenter<IOwn.Viewjiaoshixiangqing> implements IOwn.Persenterjiaoshixiangqing {




    @Override
    public void getjiaoshineirong(int cc_id, int page) {
        addSubscribe(HttpManager.getInstance().getOwnTpApi().getjiaoshixiangqing(cc_id,page)
                .compose(RxUtils.rxScheduler())
                .subscribeWith(new CommonSubscriber<JiaoShiXiangQingBean>(mView) {
                    @Override
                    public void onNext(JiaoShiXiangQingBean hanFuDaBean) {
                        mView.getjiaoxiangqing(hanFuDaBean);
                    }
                }));
    }
}
